package com.catjiu.wangEditor.entity;

import lombok.Data;

/**
 * 标题
 */
@Data
public class DomHeader extends DomParagraph{
    private int level;

    public void setLevel(int level) {
        //最多支持5级目录
        if(level >5){
            this.level = 0;
        }else{
            this.level = level;
        }
    }
    @Override
    public String getType() {
        return "header";
    }
}
